package com.tea.Model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderAddDTO {

    //收货方式 0:外送 1:自提
    @NotBlank(message = "配送方式不可为空")
    private String shippingMethod;
    //收货人姓名、电话号码、收货地址
    @NotBlank(message = "收货人不可为空")
    private String username;
    //地址
    @NotBlank(message = "地址不可为空")
    private String address;
    //邮编
    @NotBlank(message = "邮编不可为空")
    private String postcode;
    //电话
    private String phone;
    //配送费
    private String shippingFee;
    //规格id集合
    @NotEmpty(message = "商品规格列表不可为空")
    private List<GoodsOrderDTO> specWithNum;
    //订单备注
    private String remark;
    //门店id
    private String storeId;
    //商户订单号
    private String outTradeNo;
    //支付参数
    private String payParams;
}
